import request from '@/utils/request'

export function getIndexListApi(params) {
  return request({
    url: '/parking/index',
    method: 'get',
    params
  })
}

// 增加分类
export function addUserApi(data) {
  return request({
    url: '/parking/index',
    method: 'post',
    data
  })
}

// 点击修改回显
export function editUserApi(data) {
  return request({
    url: '/parking/index/' + data.id,
    method: 'put',
    data
  })
}
// 行Id
export function editIndexId(id) {
  return request({
    url: '/parking/index/' + id,
    method: 'get'
  })
}

// 删除分类
export function delUsageApi(id) {
  return request({
    url: '/parking/index/' + id,
    method: 'delete'
  })
}
